package com.bawei.module_main.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter

/**
 * @Author : yaotianxue
 * @Time : On 2023/6/24 10:58
 * @Description : MainViewPagerAdapter
 */
class MainViewPagerAdapter(val list:List<Fragment>, val mFragmentManager: FragmentManager,val mBehavior:Int):FragmentStatePagerAdapter(mFragmentManager,mBehavior) {
    override fun getCount(): Int {
        return list.size
    }

    override fun getItem(position: Int): Fragment {
       return list.get(position)
    }
}